package demo1;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86138
 * Date: 2024-07-23
 * Time: 19:43
 */
public class Test {
    public static void main(String[] args) {
        CardDemo cardList = new CardDemo();
        //买牌
        List<Card> cards = cardList.buy();
        System.out.println(cards);

        //洗牌
        cardList.ranCard(cards);
        System.out.println(cards);
        //分牌，3个人轮流分五次
        List<List<Card>> hand = cardList.fenCard(cards);
        for (int i = 0; i < 3; i++) {
            System.out.println(hand.get(i));
        }

    }

}
